/* for more options, please refer to https://github.com/mqttjs/MQTT.js#mqttclientstreambuilder-options 
  ws: 8083; wss: 8084

*/
const state = {
  config: {
    protocol: 'ws',
    host: '175.178.25.219',
    port: 60041,
    endpoint: '/mqtt',
    clean: true,
    connectTimeout: 30 * 1000,
    reconnectPeriod: 4000,
    clientId: 'emqx_vue_' + Math.random().toString(16).substring(2, 8),
    username: 'midService',
    password: '123',
  },
}

const mutations = {}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
